package com.example.demo.infra.mapper;

import com.example.demo.api.dto.StudentGradeDTO;
import com.example.demo.domain.entity.Grades;
import com.example.demo.domain.vo.StudentCourseGradesVO;
import com.example.demo.domain.vo.StudentGradesSimpleVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GradesMapper {
    List<StudentGradeDTO> selectGradesByCondition(Integer studentId, Integer teacherId, Integer courseId);

    Integer deleteByStudentIdInteger(List<Integer> ids);

    List<StudentGradesSimpleVo> selectStudentGradesSimple();

    Integer updateScore(Integer studentId, Integer courseId, Integer score);
}
